import { createApp } from 'vue'
import App from './App.vue'
// 注意 一定要 先引入store 再引入router 否则出问题
// store--permission.js 无法找到动态路由
import store from './store'
import router from './router'
import ElementPlus from 'element-plus'

// import Cookies from 'js-cookie'
import 'normalize.css/normalize.css'

import '@/styles/index.scss' // global css
import '@/styles/element-plus.scss'

const app = createApp(App)

import { SVGComponents } from './icons'
SVGComponents(app)

import './permission' // permission control

// console.log('main.js--router:', router)
// console.log('main.js--store:', store)

/* ***
自己mock 服务测试
*** */
require('../mock-mxm')

app
  .use(router)
  .use(store)
  .use(ElementPlus)
  .mount('#app')
